package cn.fzkj.springboot.provider;

import java.util.ArrayList;
import java.util.List;

/**
 * @DESCRIPTION 提供一些假数据共controller返回
 */
public class UserProvider {

    public static List<User> getUsers(){
        List list = new ArrayList();
        User user;
        for (int i = 0; i < 10; i++) {
            user = new User("name " + i, "address " + i);
            list.add(user);
        }
        return list;
    }


    static class User{
        public String name;
        public String addresss;
        public User(String name, String addr){
            this.name = name;
            this.addresss = addr;
        }
    }
}
